find_package(fmt REQUIRED)
include_directories(${fmt_INCLUDE_DIRS})

file(GLOB files ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

foreach(file ${files})
    get_filename_component(fname ${file} NAME)
    string(REGEX REPLACE ".cpp" "" bname ${fname})
    add_executable(${bname} ${fname})
    target_link_libraries(${bname} fmt::fmt)
endforeach()
